/**
 * 
 * @author Jiri Hodan
 *
 */
public class Board {
	private static int[][] board = new int[15][15];
	static final int BOARD_SIZE = 15;
	
	/**
	 * vse nastavi na defaultni nastaveni
	 */
	public void newGame(){
		for(int i = 0; i < BOARD_SIZE; i++){
			for(int j = 0; j < BOARD_SIZE; j++){
				board[i][j] = 0;
			}
		}
		
		Move.setWin(false);
		Move.setDraw(false);
		Move.move = 1;
		MoveList.getInstance().getAllMoves().clear();
		NotationPanel.list.clear();

		for(int i = 0; i < NotationPanel.data.length; i++) {
			for(int j = 0; j < NotationPanel.data[i].length; j++) {
				NotationPanel.data[i][j] = "";
			}
		}
		NotationPanel.getInstance().setTah(0);
		NotationPanel.getInstance().setTah2(0);
		NotationPanel.getInstance().setOnMove(true);
	}
	
	/**
	 * Navrati dvojrozmerne pole integeru
	 * 1 reprezentuje cerneho hrace
	 * 2 reprezentuje bileho hrace
	 * @return int[][]
	 */
	public static int[][] getBoard() {
		return board;
	}
}
